.class Lcom/xingbook/group/activity/p;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/xingbook/group/activity/GroupListActivity;

.field private final synthetic b:I


# direct methods
.method constructor <init>(Lcom/xingbook/group/activity/GroupListActivity;I)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/group/activity/p;->a:Lcom/xingbook/group/activity/GroupListActivity;

    iput p2, p0, Lcom/xingbook/group/activity/p;->b:I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 3

    const/16 v2, 0xc8

    :try_start_0
    iget v0, p0, Lcom/xingbook/group/activity/p;->b:I

    int-to-long v0, v0

    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    invoke-static {}, Lcom/xingbook/group/c/a;->a()Lcom/xingbook/group/c/a;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/group/activity/p;->a:Lcom/xingbook/group/activity/GroupListActivity;

    invoke-static {v1}, Lcom/xingbook/group/activity/GroupListActivity;->c(Lcom/xingbook/group/activity/GroupListActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/group/c/a;->a(Ljava/util/ArrayList;)Lcom/xingbook/park/e/c;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Lcom/xingbook/park/e/c;->e()I

    move-result v1

    if-ne v1, v2, :cond_1

    invoke-virtual {v0}, Lcom/xingbook/park/e/c;->a()I

    move-result v1

    if-nez v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/group/activity/p;->a:Lcom/xingbook/group/activity/GroupListActivity;

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupListActivity;->f(Lcom/xingbook/group/activity/GroupListActivity;)Lcom/xingbook/group/activity/r;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/xingbook/group/activity/r;->sendEmptyMessage(I)Z

    :goto_1
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    goto :goto_0

    :cond_0
    iget-object v1, p0, Lcom/xingbook/group/activity/p;->a:Lcom/xingbook/group/activity/GroupListActivity;

    invoke-static {v1}, Lcom/xingbook/group/activity/GroupListActivity;->f(Lcom/xingbook/group/activity/GroupListActivity;)Lcom/xingbook/group/activity/r;

    move-result-object v1

    const/4 v2, 0x2

    invoke-virtual {v0}, Lcom/xingbook/park/e/c;->d()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v2, v0}, Lcom/xingbook/group/activity/r;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V

    goto :goto_1

    :cond_1
    iget-object v0, p0, Lcom/xingbook/group/activity/p;->a:Lcom/xingbook/group/activity/GroupListActivity;

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupListActivity;->f(Lcom/xingbook/group/activity/GroupListActivity;)Lcom/xingbook/group/activity/r;

    move-result-object v0

    const/4 v1, -0x1

    invoke-virtual {v0, v1}, Lcom/xingbook/group/activity/r;->sendEmptyMessage(I)Z

    goto :goto_1
.end method
